<?
require('../database/connection.php');
	$result = mysqli_query($conn,"SELECT email 
FROM  `user`");
	$array_email = array();
	$count =0;
	while($row = mysqli_fetch_array($result))
	{
		$array_email[$count++]=$row;
	}
	echo json_encode($array_email);
?>